var runtime.vgetrandomAlloc
28 uses
runtime (current package)
vgetrandom_linux.go#L18: var vgetrandomAlloc struct {
vgetrandom_linux.go#L40: vgetrandomAlloc.stateSize = uintptr(params.SizeOfOpaqueState)
vgetrandom_linux.go#L41: vgetrandomAlloc.mmapProt = int32(params.MmapProt)
vgetrandom_linux.go#L42: vgetrandomAlloc.mmapFlags = int32(params.MmapFlags)
vgetrandom_linux.go#L44: lockInit(&vgetrandomAlloc.statesLock, lockRankVgetrandom)
vgetrandom_linux.go#L48: lock(&vgetrandomAlloc.statesLock)
vgetrandom_linux.go#L49: if len(vgetrandomAlloc.states) == 0 {
vgetrandom_linux.go#L51: stateSizeCacheAligned := (vgetrandomAlloc.stateSize + cpu.CacheLineSize - 1) &^ (cpu.CacheLineSize - 1)
vgetrandom_linux.go#L54: p, err := mmap(nil, allocSize, vgetrandomAlloc.mmapProt, vgetrandomAlloc.mmapFlags, -1, 0)
vgetrandom_linux.go#L56: unlock(&vgetrandomAlloc.statesLock)
vgetrandom_linux.go#L61: if vgetrandomAlloc.states == nil {
vgetrandom_linux.go#L62: vgetrandomAlloc.states = make([]uintptr, 0, num)
vgetrandom_linux.go#L65: if (newBlock&(physPageSize-1))+vgetrandomAlloc.stateSize > physPageSize {
vgetrandom_linux.go#L68: vgetrandomAlloc.states = append(vgetrandomAlloc.states, newBlock)
vgetrandom_linux.go#L72: state := vgetrandomAlloc.states[len(vgetrandomAlloc.states)-1]
vgetrandom_linux.go#L73: vgetrandomAlloc.states = vgetrandomAlloc.states[:len(vgetrandomAlloc.states)-1]
vgetrandom_linux.go#L74: unlock(&vgetrandomAlloc.statesLock)
vgetrandom_linux.go#L86: lock(&vgetrandomAlloc.statesLock)
vgetrandom_linux.go#L87: vgetrandomAlloc.states = append(vgetrandomAlloc.states, mp.vgetrandomState)
vgetrandom_linux.go#L88: unlock(&vgetrandomAlloc.statesLock)
vgetrandom_linux.go#L95: if vgetrandomAlloc.stateSize == 0 {
vgetrandom_linux.go#L127: return vgetrandom1(unsafe.SliceData(p), uintptr(len(p)), flags, mp.vgetrandomState, vgetrandomAlloc.stateSize), true
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |